
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
.STYLE1 {font-size: 24px}
.STYLE2 {font-size: 70px}
.STYLE7 {font-size: smaller}
.STYLE6 {font-size: medium}
-->
</style>
 	
	<!-- start about us -->
		<?php
		//初始化模板参数:$this->aboutusTitle、$this->aboutusTitleImg
		$this->aboutusTitle = 
		'注意：为了保证更多用户的使用权益，<br>
		    　　　<br>
		    　　　请尽可能保证您填写的信息是真实有效的，谢谢您的合作.';
		$this->aboutusTitleImg = $this->baseUrl().'/images/onlineregist.png';
		
		$aboutusLayout = new Zend_Layout();
		echo $aboutusLayout->render('/module/aboutus');
		?>
	<!-- end about us -->
	
	<!-- start logos -->
	<div class="logos">
		
	</div>
	<!-- end logos -->
	
	<!-- start content -->
	<div id="vg-content">

		<!-- start portfolio details -->
		<div id="portfolio-details" class="vg-page">
		
			<!-- start details -->
			<?php
				//左侧信息
				//左侧登录
				$loginLayout = new Zend_Layout();
				echo $loginLayout->render('/module/login');  
			?>
			<article class="border-top c-four height-auto">
			
				<div class="vg-item-article vg-portfolio-details">
					<!-- title -->
					<!-- end title -->
					<!-- upload start -->
					<!-- upload ends -->
					<!-- download list -->
					
					<!-- enddownload list -->
					<!-- pager start -->
					
					<!-- pager end -->
					
					<form id="registerform" name="registerform" action="<?php echo $this->url(
					    array(
					        'controller' => 'index',
					        'action'     => 'register'
					    ),
					    'default',
					    true) ?>"method="post" >
					<p>请选择注册类别
				    	<input onClick="javascript:onKindsRadio()" type="radio" name="kindradio" id="kindradio" value="teacher"<?php if(isset($this->isteacher)&&$this->isteacher)echo 'checked="checked"';?>>教师
				    	<input onClick="javascript:onKindsRadio()" type="radio" name="kindradio" id="kindradio" value="student" <?php if(!isset($this->isteacher)||!$this->isteacher) echo 'checked="checked"';?>>学生
				  	</p>
				  	<p id="pschoolnumber" name="pschoolnumber">学号　　
				    	<input type="text" name="schoolnumber" id="schoolnumber">
				    	<span style="color:red;"><?php if($this->tipschoolnumber!='')echo $this->tipschoolnumber;?></span>
				    </p>
				  	<p id="pmajor" name="pmajor">专业　　
				    	<input type="text" name="major" id="major">
				    	<span style="color:red;"><?php if($this->tipmajor!='')echo $this->tipmajor;?></span>
				  	</p>
				  	<p id="pgrade" name="pgrade">年级　　
				    	<input type="text" name="grade" id="grade">
				    	<span style="color:red;"><?php if($this->tipgrade!='')echo $this->tipgrade;?></span>
				    </p>
				  	<p id="pclass" name="pclass">班级　　
				    	<input type="text" name="class" id="class">
				    	<span style="color:red;"><?php if($this->tipclass!='')echo $this->tipclass;?></span>
				    </p>
				  	<p>学院　　
				    	<select name="college">
				     	 <?php
				     	 	foreach ($this->collegearray as $key=>$value)
				     	 	{
				     	 	    echo '<option value='.$key.'>'.$value.'</option>';
				     	 	} 
				     	 ?>
				     	 </select>
				     	 <span style="color:red;"><?php if($this->tipcollege!='')echo $this->tipcollege;?></span>
				  	</p>
				  	<p>账号　　
				    	<input type="text" name="nickname" id="nickname">
				    	<span style="color:red;"><?php if($this->tipnickname!='')echo $this->tipnickname;?></span>
				  	</p>
				  	<p>真实姓名
				    	<input type="text" name="realname" id="realname">
				    	<span style="color:red;"><?php if($this->tiprealname!='')echo $this->tiprealname;?></span>
				  	</p>
				  	<p>激活邮箱
				    	<input type="text" name="mail" id="mail">
				    	<span style="color:red;"><?php if($this->tipmail!='')echo $this->tipmail;?></span>
				  	</p>
				  	<p>登录密码
				    	<input type="password" name="password" id="password">
				    	<span style="color:red;"><?php if($this->tippassword!='')echo $this->tippassword;?></span>
				  	</p>
				  	<p>确认密码
				    	<input type="password" name="confirmpassword" id="confirmpassword">
				    	<span style="color:red;"><?php if($this->tipconfirmpassword!='')echo $this->tipconfirmpassword;?></span>
				  	</p>
 
                	<div class="vg-pages vg-launch"> <a href="javascript:onSubmit()" class="vg-page">&raquo;　注　册</a> </div>
			    	</form>               
		      	</div>
			  </div>
				
			</article>
			<!-- end details -->
			
	  </div>
	  <!-- end portfolio details -->
		
	</div>
	<!-- end content -->

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-23864149-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
  function searchEnter(){
	if(event.keyCode==13){
		document.getElementById('searchform').submit();
		return false;
	}  
  }
</script>
<script type="text/javascript">
	function onSubmit()
	{
		document.getElementById('registerform').submit();
	}
	function onKindsRadio()
	{
		var radio = document.getElementsByName('kindradio');
		//使用这个就不行document.getElementById('schoolnumber')
		var i,result;
		for(i = 0;i<radio.length;i++)
		{
			if(radio[i].checked)
			{
				result = radio[i].value;
				break;
			}
		}
		if(result=='student')
		{
			document.getElementById('pschoolnumber').style.display=""
			document.getElementById('pmajor').style.display=""
			document.getElementById('pgrade').style.display=""
			document.getElementById('pclass').style.display=""
		}
		else
		{
			document.getElementById('pschoolnumber').style.display="none"
			document.getElementById('pmajor').style.display="none"
			document.getElementById('pgrade').style.display="none"
			document.getElementById('pclass').style.display="none"
			
		}
	}
	window.onload = onKindsRadio;//不要括号
	//alert("zhixingl");
</script>
